@import "var";

.qlist-filter{
    font-size: 12px;
    color: $text;
    .filter{
        display: inline-block;
        margin-bottom: 5px;
        height: auto;
        overflow: hidden;
        white-space: nowrap;
    }
    label,input{
        display: inline-block;
    }
    input,select{
        border: none;
        background-color: #f1f1f1;
        padding: 5px;
        cursor: pointer;
        display: inline-block;
        width: 120px;
    }
    label{
        width: 60px;
        text-align: right;
        padding-right: 10px;
    }
 
}
.qlist-table {
    @extend .no-scrollbar;
    text-align: center;
    width: calc(100% - 20px);
    font-size: 13px;
    font-family: math;
    border-spacing: 0;
    margin: 10px auto;
    a {
        text-decoration: none;
    }
    thead {
        background-color: $color;
        width: 100%;

        th {
            font-size: 12px;
            line-height: 1;
            padding: 15px 0;
            color: #FFF;
        }
    }

    tbody {
        @extend .shadow;
        tr{
            border-bottom: 1px dashed #EEE;
            &:hover{
                background-color: #f1f1f1; 
            }
        }
    }

    .qlist-field-name, .qlist-field-value {
        display: inline-block;
    }

    .qlist-field-name {
        display: none;
    }

    .qlist-field-value {
        word-break: break-all;
        max-width: 260px;
        max-height: 35px;
        overflow-y: hidden;
    }

    td {
        padding: 10px 0;
        border: none;
        cursor: pointer;

    }

    .qlist-actions {
        text-align: right;
        a{
            margin-right: 5px !important;
        }
    }
}
.qlist-extend{
    height: auto;
    overflow: hidden;
}
.qlist-extend .right{
    text-align: right;
}
.qlist-btn {
    text-align: center;
    font-size: 12px;
    color: #333;
    @extend .shadow;
    margin: 5px 5px 5px 0;
    display: inline-block;
    line-height: 1;
    padding: 10px 20px;
    border-radius: 3px;

    &.small{
        padding: 5px 10px;
    }
}


.qlist-response {
    width: 100%;

    &, & .qlist-table {
        display: block;

        thead {
            display: none;
        }

        tbody {
            box-shadow: none;
            display: block;
        }

        tr {
            padding: 10px;
            background-color: #FFF;
            height: auto;
            overflow: hidden;
            display: block;
            text-align: left;
            box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
            white-space: nowrap;
            margin-bottom: 10px;
            td {
                position: relative;
                white-space: nowrap !important;
                display: inline-block;
                width: calc(50% - 5px);   
                float: left;
                padding:0;
                .qlist-field-value {
                    width: calc(100% - 50px);
                    word-break: break-all;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }

            }
        }
        .qlist-field-value,.qlist-field-name{
                padding: 0;
                height: 30px;
                line-height: 30px;
        }
        .qlist-field-name {
            display: inline-block;
            color: #5e5e5e;
            overflow: hidden;
            width: 50px;
            margin-right: 5px;
            font-size: 12px;
            text-align: right;
        }

        .qlist-actions {
            width: 100%;
            text-align: right;
            padding: 0 !important;
            a {
                @extend .shadow;
                margin: 5px;
                padding: 5px 10px;
            }
        }
    }

 
}

.qlist-page{
    span{
        padding: 5px 15px;
        cursor: pointer;
        display: inline-block;
        background-color: #FEFEFE;
        @extend .shadow;
        &.on{
            background-color: $color;
            color: #FFF;
        }
    }
}

#block-list{ 
 
    .block-item{
        cursor: pointer; 
        
        h3,p{
            margin: 0;
        }
    }

}

@media screen and (max-width: 768px) {
    .filter{
        width: 48%;
    }
    .qlist-filter{
        input,select{
            width: calc(100% - 80px);
        }
    } 

}